Always fire watches, even on the connection which caused the watch to fire.
authorcl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk>
Mon, 12 Sep 2005 12:31:41 +0000 (12:31 +0000)
committercl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk>
Mon, 12 Sep 2005 12:31:41 +0000 (12:31 +0000)
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
tools/xenstore/xenstored_watch.c

index ebd13111d5ea9d1b62cc6d1e2c6d0c74357e00e5..b413f4c697c24ed9123e4473eb5b10b1bddfaf3f 100644 (file)
@@ -135,11 +135,8 @@ void fire_watches(struct connection *conn, const char *node, bool recurse)
        if (conn && conn->transaction)
                return;
 
-       /* Create an event for each watch.  Don't send to self. */
+       /* Create an event for each watch. */
        list_for_each_entry(i, &connections, list) {
-               if (i == conn)
-                       continue;
-
                list_for_each_entry(watch, &i->watches, list) {
                        if (is_child(node, watch->node))
                                add_event(i, watch, node);